<?php

use think\facade\Route;

/** 队列处理学习记录及进度 */
Route::group('queue', function () {
    Route::post('learn/record', '\app\common\queue\learn\Record@run');
    Route::post('learn/rate', '\app\common\queue\learn\Rate@run');
    Route::post('payment', '\app\common\queue\payment\Payment@run');
    Route::post('upload/sync', '\app\common\queue\upload\Sync@run');
    /** 启动项目，定时任务 */
    Route::post('upload/check', '\app\common\queue\upload\Check@run');
    Route::post('split/unfrozen', '\app\common\queue\split\Unfrozen@run');
    Route::post('website/visit', '\app\common\queue\website\Visit@run');
    Route::post('school/level', '\app\common\queue\school\Level@run');
    Route::post('promotion/tuan', '\app\common\queue\promotion\Tuan@run');
    /** 获得场景bokecc */
    // Route::post('bokecc/upload', '\app\common\queue\bokecc\Upload@run');
    // Route::post('bokecc/update', '\app\common\queue\bokecc\Update@run');
    Route::post('bokecc/liveview/yunzhibo', '\app\common\queue\bokecc\YZBViewRecord@run');
    Route::post('bokecc/liveview/yunketang', '\app\common\queue\bokecc\YKTViewRecord@run');
    /** 课程 */
    Route::post('course/notify', '\app\common\queue\notify\CourseNotify@run');
    /** 同步云端视频到本地 */
    Route::post('upload/sync/video/local', '\app\common\queue\upload\SyncVideoToLocal@run');
    /** 机构自定义域名CANME解析检测 */
    Route::post('school/domain/check', '\app\common\queue\school\SchoolDomainCheck@run');
    /** 发送活动短信任务 */
    Route::post('event/ticket/notify/check', '\app\common\queue\notify\EventTicketNotiy@run');
    Route::post('event/ticket/notify/send', '\app\common\queue\notify\EventTicketSendSms@run');
    /** 发送课程将到期通知 */
    Route::post('course/expired/check', '\app\common\queue\notify\CheckStudentCourseExpired@run');
    Route::post('course/expired/notify/send', '\app\common\queue\notify\SendStudentCourseExpiredNotify@run');
    /** 发送课程将直播通知 */
    Route::post('course/living/check', '\app\common\queue\notify\CheckStudentCourseLiving@run');
    Route::post('course/living/notify/send', '\app\common\queue\notify\SendStudentCourseLivingNotify@run');
})->middleware([\app\common\middleware\ApiTest::class]);